﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using MyLib;
using System.Web;

using Portal.Entity;
using Portal.Interface;

namespace Portal.Logic
{
    /// <summary>
    /// 数据库资源类，实现与IResource接口
    /// </summary>
    public class DBResourceLogic :IResource
    {        
        public List<ResourceEntity> GetResourceList()
        {
            List<ResourceEntity> lists= DataAccess.Instance().GetList<ResourceEntity>("ResourceLogic_GetResourceList", null);
            return lists;
        }

        public void ClearResourceList()
        {
            DataAccess.Instance().GetObject("ResourceLogic_ClearResourceList", null);
        }
    }
}
